<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    // let p1 = Promise.resolve('33')
    // //不是Promise对象则返回的结果是成功Promise对象
    // let p2 = new Promise((res, rej) => {
    //   throw '123'
    // }).catch((err) => {
    //   console.log(err)
    // })
    // console.log(p1)
    // console.log(p2)
    let p3 = Promise.reject(new Promise((res, rej) => {
      res('ok')
    }))
    console.log(p3)
  </script>
</head>

<body>

</body>

</html>